<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="ObjectUtil,mx.utils.ObjectUtil,compare,copy,dateCompare,getClassInfo,hasMetadata,isSimple,numericCompare,stringCompare,toString" name="keywords">
<title>mx.utils.ObjectUtil</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ObjectUtil - Zentrum virtUOS: virtPresenter';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">virtPresenter AsDoc</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?mx/utils/ObjectUtil.html&amp;mx/utils/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ObjectUtil</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ObjectUtil"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mx.utils</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ObjectUtil</td>
</tr>
</table>
<p></p>
  The ObjectUtil class is an all-static class with methods for
  working with Objects within Flex.
  You do not create instances of ObjectUtil;
  instead you simply call static methods such as the 
  <code>ObjectUtil.isSimple()</code> method.
 <p></p>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#compare()">compare</a>(a:Object, b:Object, depth:int = -1):int</div>
<div class="summaryTableDescription">[static]
      Compares the Objects and returns an integer value 
      indicating if the first item is less than greater than or equal to
      the second item.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#copy()">copy</a>(value:Object):Object</div>
<div class="summaryTableDescription">[static]
      Copies the specified Object and returns a reference to the copy.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#dateCompare()">dateCompare</a>(a:Date, b:Date):int</div>
<div class="summaryTableDescription">[static]
      Compares the two Date objects and returns an integer value 
      indicating if the first Date object is before, equal to, 
      or after the second item.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getClassInfo()">getClassInfo</a>(obj:Object, excludes:Array = null, options:Object = null):Object</div>
<div class="summaryTableDescription">[static]
      Returns information about the class, and properties of the class, for
      the specified Object.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hasMetadata()">hasMetadata</a>(obj:Object, propName:String, metadataName:String, excludes:Array = null, options:Object = null):Boolean</div>
<div class="summaryTableDescription">[static]
     Uses <code>getClassInfo</code> and examines the metadata information to
     determine whether a property on a given object has the specified 
     metadata.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isSimple()">isSimple</a>(value:Object):Boolean</div>
<div class="summaryTableDescription">[static]
      Returns <code>true</code> if the object reference specified
      is a simple data type.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#numericCompare()">numericCompare</a>(a:Number, b:Number):int</div>
<div class="summaryTableDescription">[static]
      Compares two numeric values.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#stringCompare()">stringCompare</a>(a:String, b:String, caseInsensitive:Boolean = false):int</div>
<div class="summaryTableDescription">[static]
      Compares two String values.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toString()">toString</a>(value:Object, namespaceURIs:Array = null, exclude:Array = null):String</div>
<div class="summaryTableDescription">[static]
      Pretty-prints the specified Object into a String.</div>
</td><td class="summaryTableOwnerCol">ObjectUtil</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="compare()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">compare</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function compare(a:Object, b:Object, depth:int = -1):int</code><p>
      Compares the Objects and returns an integer value 
      indicating if the first item is less than greater than or equal to
      the second item.
      This method will recursively compare properties on nested objects and
      will return as soon as a non-zero result is found.
      By default this method will recurse to the deepest level of any property.
      To change the depth for comparison specify a non-negative value for
      the <code>depth</code> parameter.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:Object</code> &mdash; Object.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:Object</code> &mdash; Object.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">depth</span>:int</code> (default = <code>-1</code>)<code></code> &mdash; Indicates how many levels should be 
      recursed when performing the comparison.
      Set this value to 0 for a shallow comparison of only the primitive 
      representation of each property.
      For example:<pre>
      var a:Object = {name:"Bob", info:[1,2,3]};
      var b:Object = {name:"Alice", info:[5,6,7]};
      var c:int = ObjectUtil.compare(a, b, 0);</pre>
           <p>In the above example the complex properties of <code>a</code> and 
      <code>b</code> will be flattened by a call to <code>toString()</code>
      when doing the comparison.
      In this case the <code>info</code> property will be turned into a string
      when performing the comparison.</p>
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>int</code> &mdash; Return 0 if a and b are null, NaN, or equal. 
      Return 1 if a is null or greater than b. 
      Return -1 if b is null or greater than a. 
     </td>
</tr>
</table>
</div>
<a name="copy()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">copy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function copy(value:Object):Object</code><p>
      Copies the specified Object and returns a reference to the copy.
      The copy is made using a native serialization technique. 
      This means that custom serialization will be respected during the copy.
           </p><p>This method is designed for copying data objects, 
      such as elements of a collection. It is not intended for copying 
      a UIComponent object, such as a TextInput control. If you want to create copies 
      of specific UIComponent objects, you can create a subclass of the component and implement 
      a <code>clone()</code> method, or other method to perform the copy.</p>
     
      <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:Object</code> &mdash; Object that should be copied.
     
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Object</code> &mdash; Copy of the specified Object.
     </td>
</tr>
</table>
</div>
<a name="dateCompare()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dateCompare</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function dateCompare(a:Date, b:Date):int</code><p>
      Compares the two Date objects and returns an integer value 
      indicating if the first Date object is before, equal to, 
      or after the second item.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:Date</code> &mdash; Date object.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:Date</code> &mdash; Date object.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>int</code> &mdash; 0 if <code>a</code> and <code>b</code>
      are <code>null</code> or equal; 
      1 if <code>a</code> is <code>null</code>
      or before <code>b</code>; 
      -1 if <code>b</code> is <code>null</code>
      or before <code>a</code>. 
     </td>
</tr>
</table>
</div>
<a name="getClassInfo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getClassInfo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getClassInfo(obj:Object, excludes:Array = null, options:Object = null):Object</code><p>
      Returns information about the class, and properties of the class, for
      the specified Object.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:Object</code> &mdash; The Object to inspect.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">excludes</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Array of Strings specifying the property names that should be 
      excluded from the returned result. For example, you could specify 
      <code>["currentTarget", "target"]</code> for an Event object since these properties 
      can cause the returned result to become large.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">options</span>:Object</code> (default = <code>null</code>)<code></code> &mdash; An Object containing one or more properties 
      that control the information returned by this method. 
      The properties include the following:
           <ul>
        <li><code>includeReadOnly</code>: If <code>false</code>, 
          exclude Object properties that are read-only. 
          The default value is <code>true</code>.</li>
      <li><code>includeTransient</code>: If <code>false</code>, 
          exclude Object properties and variables that have <code>[Transient]</code> metadata.
          The default value is <code>true</code>.</li>
      <li><code>uris</code>: Array of Strings of all namespaces that should be included in the output.
          It does allow for a wildcard of "*". 
          By default, it is null, meaning no namespaces should be included. 
          For example, you could specify <code>["mx_internal", "mx_object"]</code> 
          or <code>["*"]</code>.</li>
      </ul>
     
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Object</code> &mdash; An Object containing the following properties:
      <ul>
        <li><code>name</code>: String containing the name of the class;</li>
        <li><code>properties</code>: Sorted list of the property names of the specified object.</li>
      </ul>
    </td>
</tr>
</table>
</div>
<a name="hasMetadata()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hasMetadata</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function hasMetadata(obj:Object, propName:String, metadataName:String, excludes:Array = null, options:Object = null):Boolean</code><p>
     Uses <code>getClassInfo</code> and examines the metadata information to
     determine whether a property on a given object has the specified 
     metadata.
     
     </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:Object</code> &mdash; The object holding the property.
     </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">propName</span>:String</code> &mdash; The property to check for metadata.
     </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">metadataName</span>:String</code> &mdash; The name of the metadata to check on the property.
     </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">excludes</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; If any properties need to be excluded when generating class info. (Optional)
     </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">options</span>:Object</code> (default = <code>null</code>)<code></code> &mdash; If any options flags need to changed when generating class info. (Optional)
     </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; true if the property has the specified metadata.
     </td>
</tr>
</table>
</div>
<a name="isSimple()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isSimple</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isSimple(value:Object):Boolean</code><p>
      Returns <code>true</code> if the object reference specified
      is a simple data type. The simple data types include the following:
      <ul>
        <li><code>String</code></li>
        <li><code>Number</code></li>
        <li><code>uint</code></li>
        <li><code>int</code></li>
        <li><code>Boolean</code></li>
        <li><code>Date</code></li>
        <li><code>Array</code></li>
      </ul>
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:Object</code> &mdash; Object inspected.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; <code>true</code> if the object specified
      is one of the types above; <code>false</code> otherwise.
     </td>
</tr>
</table>
</div>
<a name="numericCompare()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">numericCompare</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function numericCompare(a:Number, b:Number):int</code><p>
      Compares two numeric values.
     
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:Number</code> &mdash; First number.
     
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:Number</code> &mdash; Second number.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>int</code> &mdash; 0 is both numbers are NaN. 
      1 if only <code>a</code> is a NaN.
      -1 if only <code>b</code> is a NaN.
      -1 if <code>a</code> is less than <code>b</code>.
      1 if <code>a</code> is greater than <code>b</code>.
     </td>
</tr>
</table>
</div>
<a name="stringCompare()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">stringCompare</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function stringCompare(a:String, b:String, caseInsensitive:Boolean = false):int</code><p>
      Compares two String values.
     
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:String</code> &mdash; First String value.
     
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:String</code> &mdash; Second String value.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">caseInsensitive</span>:Boolean</code> (default = <code>false</code>)<code></code> &mdash; Specifies to perform a case insensitive compare, 
      <code>true</code>, or not, <code>false</code>.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>int</code> &mdash; 0 is both Strings are null. 
      1 if only <code>a</code> is null.
      -1 if only <code>b</code> is null.
      -1 if <code>a</code> precedes <code>b</code>.
      1 if <code>b</code> precedes <code>a</code>.
     </td>
</tr>
</table>
</div>
<a name="toString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function toString(value:Object, namespaceURIs:Array = null, exclude:Array = null):String</code><p>
      Pretty-prints the specified Object into a String.
      All properties will be in alpha ordering.
      Each object will be assigned an id during printing;
      this value will be displayed next to the object type token
      preceded by a '#', for example:
           <pre>
      (mx.messaging.messages::AsyncMessage)#2.</pre>
           </p><p>This id is used to indicate when a circular reference occurs.
      Properties of an object that are of the <code>Class</code> type will
      appear only as the assigned type.
      For example a custom definition like the following:</p>
           <pre>
        public class MyCustomClass {
          public var clazz:Class;
        }</pre>
     
      <p>With the <code>clazz</code> property assigned to <code>Date</code>
      will display as shown below:</p>
     
      <pre>
       (somepackage::MyCustomClass)#0
          clazz = (Date)</pre>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:Object</code> &mdash; Object to be pretty printed.
     
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">namespaceURIs</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Array of namespace URIs for properties 
      that should be included in the output.
      By default only properties in the public namespace will be included in
      the output.
      To get all properties regardless of namespace pass an array with a 
      single element of ".
     
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">exclude</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Array of the property names that should be 
      excluded from the output.
      Use this to remove data from the formatted string.
     
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code> &mdash; String containing the formatted version
      of the specified object.
           </td>
</tr>
</table>
<br>
<span class="label">Example</span>
<br>      <pre>
      // example 1
      var obj:AsyncMessage = new AsyncMessage();
      obj.body = [];
      obj.body.push(new AsyncMessage());
      obj.headers["1"] = { name: "myName", num: 15.3};
      obj.headers["2"] = { name: "myName", num: 15.3};
      obj.headers["10"] = { name: "myName", num: 15.3};
      obj.headers["11"] = { name: "myName", num: 15.3};
      trace(ObjectUtil.toString(obj));
           // will output to flashlog.txt
      (mx.messaging.messages::AsyncMessage)#0
        body = (Array)#1
          [0] (mx.messaging.messages::AsyncMessage)#2
            body = (Object)#3
            clientId = (Null)
            correlationId = ""
            destination = ""
            headers = (Object)#4
            messageId = "378CE96A-68DB-BC1B-BCF7FFFFFFFFB525"
            sequenceId = (Null)
            sequencePosition = 0
            sequenceSize = 0
            timeToLive = 0
            timestamp = 0
        clientId = (Null)
        correlationId = ""
        destination = ""
        headers = (Object)#5
          1 = (Object)#6
            name = "myName"
            num = 15.3
          10 = (Object)#7
            name = "myName"
            num = 15.3
          11 = (Object)#8
            name = "myName"
            num = 15.3
          2 = (Object)#9
            name = "myName"
            num = 15.3
        messageId = "1D3E6E96-AC2D-BD11-6A39FFFFFFFF517E"
        sequenceId = (Null)
        sequencePosition = 0
        sequenceSize = 0
        timeToLive = 0
        timestamp = 0
           // example 2 with circular references
      obj = {};
      obj.prop1 = new Date();
      obj.prop2 = [];
      obj.prop2.push(15.2);
      obj.prop2.push("testing");
      obj.prop2.push(true);
      obj.prop3 = {};
      obj.prop3.circular = obj;
      obj.prop3.deeper = new ErrorMessage();
      obj.prop3.deeper.rootCause = obj.prop3.deeper;
      obj.prop3.deeper2 = {};
      obj.prop3.deeper2.deeperStill = {};
      obj.prop3.deeper2.deeperStill.yetDeeper = obj;
      trace(ObjectUtil.toString(obj));
           // will output to flashlog.txt
      (Object)#0
        prop1 = Tue Apr 26 13:59:17 GMT-0700 2005
        prop2 = (Array)#1
          [0] 15.2
          [1] "testing"
          [2] true
        prop3 = (Object)#2
          circular = (Object)#0
          deeper = (mx.messaging.messages::ErrorMessage)#3
            body = (Object)#4
            clientId = (Null)
            code = (Null)
            correlationId = ""
            destination = ""
            details = (Null)
            headers = (Object)#5
            level = (Null)
            message = (Null)
            messageId = "14039376-2BBA-0D0E-22A3FFFFFFFF140A"
            rootCause = (mx.messaging.messages::ErrorMessage)#3
            sequenceId = (Null)
            sequencePosition = 0
            sequenceSize = 0
            timeToLive = 0
            timestamp = 0
          deeper2 = (Object)#6
            deeperStill = (Object)#7
              yetDeeper = (Object)#0
      </pre>
          <p></p>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
